//==========================================================================
// Copyright (c) 2000-2008,  Elastos, Inc.  All Rights Reserved.
//==========================================================================

#include <bsp.h>
#include <nu_api.h>

#define RYCR    0x80900014//Address of register for year, month and day of month
#define RDCR    0x80900010//Address of register for hour, minute, second and
                          // day of week

//void _Pcf_SyncRTCTime();
EXTERN_C DECL_CODEINIT void CDECL InitRTC()
{
    //Sync RTC Time from pcf50606
//    _Pcf_SyncRTCTime();
}

EXTERN_C void CDECL BspGetRTCTime(RTCTime *pRTCTime)
{
    nu_getRTCTime((void *) pRTCTime);
}

EXTERN_C void CDECL BspSetRTCTime(const RTCTime *pRTCTime)
{
    nu_setRTCTime((void *) pRTCTime);
}
